package indzcraft.ui;

public enum Slot {
    head(0, "head", true),
    neck(1, "neck", false),
    shoulder(2, "shoulder", true),
    back(3, "back", true),
    chest(4, "chest", true),
    shirt(5, "shirt", false),
    tabard(6, "tabard", false),
    wrist(7, "wrist", true),
    hands(8, "hands", true),
    waist(9, "waist", false),
    legs(10, "legs", true),
    feet(11, "feet", true),
    finger1(12, "finger1", true),
    finger2(13, "finger2", true),
    trinket1(14, "trinket1", false),
    trinket2(15, "trinket2", false),
    mainHand(16, "mainHand", true),
    offHand(17, "offHand", true),
    ranged(18, "ranged", false);

    public static final Slot[] possibleSlots = new Slot[] {
        head, neck, shoulder, back, chest, shirt, tabard, wrist, hands, waist, legs, feet, finger1, finger2, trinket1, trinket2, mainHand, offHand, ranged 
    };
    private final int index;
    private final String name;
    private final boolean enchantable;

    private Slot(int index, String name, boolean enchantable) {
        this.index = index;
        this.name = name;
        this.enchantable = enchantable;
    }

    public int getIndex() {
        return index;
    }

    public String getName() {
        return name;
    }

    public boolean isEnchantable() {
        return enchantable;
    }
}
